package com.tom.de;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Import;

@ConditionalOnProperty(
        prefix = "spring.auth",
        value = "enabled",
        havingValue = "true", //spring.auth.enabled 值与 havingValue值对对比，相等则自动装载，不相等不装载。
        matchIfMissing = false
)
//注入拦截器的配置
@Import(WebConfig.class)
public class AuthorityAutoConfiguration {
}

